﻿using System;

namespace BrsdServer
{
    public partial class header : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if ((String)Session["nameSession"]=="" ||(String)Session["pwdSession"]==""
                || Session["nameSession"] == null || Session["pwdSession"]==null)
            {
                Response.Redirect("index.aspx");
		return;
            }
            loginUser.Text =(String)Session["nameSession"];
        }

        protected void loginExit_Click(object sender, EventArgs e)
        {
            Session["nameSession"] = "";
            Session["pwdSession"] = "";

            Response.Write("<script>window.top.location='index.aspx';</script>");  
        }
    }
}
